All Functions of Week 4

glm

{base}

Fits generalized linear models

rm

{base}

Remove objects

factor

{base}

Create factor variables

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

setwd

{base}

Set Working Directory

min

{base}

Get minimum of a vector

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

nobs

{stats}

Return the number of observations in a model object

is.na

{base}

Check if a value is NA/elements of vector are NA

c

{base}

Combine values/vectors into a vector

library

{base}

Load an R package

log

{base}

log (default base = e)

binomial

{base}

Family argument in glm()

predict

{stats}

Generate predicted values from model objects

colMeans

{base}

Computes the means of each column of a numeric matrix or data frame

max

{base}

Get maximum of a vector

summary

{base}

Obtain summary statistics or detailed regression output

complete.cases

{stats}

Find Complete Cases

factor

{base}

Create a factor

seq

{base}

Create a sequence

scale_color_manual

{ggplot2}

Manually sets the colours used in a ggplot color scale to user-specified values

quantile

{stats}

Obtain empirical quantiles of a vector

The end!